import HTTP from '../utils/http';
import { API } from '../config/config';

const COMMON = API.COMMON;  

export default class CommonService extends HTTP {
    //改变课程和推荐课程的上下架状态
    changeStatus (data) {
        return new Promise((resolve, reject) => {
            this.aixosPost({
                url: COMMON.CHANGE_STATUS,
                data,
                success (data) {
                    resolve(data);
                },
                error (error) {
                    // alert('网络请求失败');
                    console.log(error);
                }
            })
        })
    }
}
  